home *** CD-ROM | disk | FTP | other *** search
- From: Julian Reschke <reschke@GOEDEL.UNI-MUENSTER.DE>
- Subject: Re: warnings
- Date: Fri, 18 Feb 94 13:53:48 MET DST
- In-Reply-To: <9402181223.AA06285@topo>; from "Thierry Bousch" at Feb 18, 94 1:23 pm
-
- >
- > Hi Julian,
- >
- > > Here are some diffs to get rid of some warnings:
- >
- > > 761c761
- > > < if (( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
- > > ---
- > > > if (0 != ( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
- >
- > it seems that Pure C had a good reason to issue this warning: I guess that
- > the line should have been:
- >
- > if ((r = (*fc.fs->getxattr)(&fc, &xattr)) < 0)
- >
- > which is not the same, since the assigment operator has lower
- > precedence than the comparison operator.
- >
- > Thierry.
- >
-
- Indeed!
-
- BTW: sorry for sending non-context diffs; I'll do it better next week...
-